package mpcc.mpcc.activity.account_manage;

import java.text.SimpleDateFormat;
import java.util.Date;

import mpcc.mpcc.activity.MPCCActivity;
import mpcc.mpcc.activity.R;
import mpcc.mpcc.activity.busi_presentation.AllBusinessActivity;
import mpcc.mpcc.activity.card_info.LoginActivity;
import mpcc.mpcc.base.BaseActivity;
import mpcc.mpcc.base.BaseInfo;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Spinner;
import android.widget.TextView;

public class AccountManageActivity extends BaseActivity {
	private Button chargeBtn;
	private Button btnCancelReturn;
	private TextView myCurrentMoney;

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.accountmanage);
		chargeBtn = (Button) findViewById(R.id.btnCharge);
		btnCancelReturn = (Button) findViewById(R.id.btnCancelReturn);
		myCurrentMoney = (TextView) findViewById(R.id.myCurrentMoney);
		SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
		String cardid = (String) BaseInfo.getMap().get("cardid");
		String requestStr = "22100001" + cardid + sdf.format(new Date());
		String currentMoney = "0.0";
		myCurrentMoney.setText(currentMoney);
		BaseInfo.getMap().put("currentMoney", currentMoney);
		chargeBtn.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent();
				intent.setClass(AccountManageActivity.this,
						BankListActivity.class);
				AccountManageActivity.this.startActivity(intent);
			}

		});

		addChangeActListener(btnCancelReturn, AccountManageActivity.this,
				MPCCActivity.class);

	}
}
